package com.project.schoolFoodShare.common.annotation;

import com.project.schoolFoodShare.common.enums.BusinessType;
import com.project.schoolFoodShare.common.enums.OperatorType;

import java.lang.annotation.*;

@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /**
     * 模块
     */
    String name() default "";

    /**
     * 功能
     */
    BusinessType type() default BusinessType.OTHER;

    /**
     * 操作人类别
     */
    OperatorType operType() default OperatorType.MANAGE;

    /**
     * 是否保存请求的参数
     */
    boolean isSaveRequestData() default true;

}
